﻿<%@ Page Language="C#" MasterPageFile="~/webadmin/pages/MasterPage.master" AutoEventWireup="true" CodeFile="DanhMuc_ChuyenMon_list.aspx.cs" Inherits="webadmin_pages_Default2" Title="Danh mục chuyên môn" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder_Main" Runat="Server">
			<div class="tbl">
			<div class="clear"></div> <!-- End .clear -->
<div class="content-box ">
                
				<div class="content-box-header">
            <h3>
                Danh sách : <span style="color: #00CC00">Danh mục chuyên môn</span></h3>
            <div class="clear">
                &nbsp;</div>
        </div>
        <!-- End .content-box-header -->
				
				<div class="content-box-content "  >
					
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
				
				<!-- Start Notifications -->
			<% if (!string.IsNullOrEmpty(messageError))
      {%>
			<div class="notification error png_bg">
				<a href="#" class="close"><img src="../resources/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
				<div>
				Thông báo lỗi: <b><i><%=messageError%></i></b></div>
			</div>
			<%} %>
			
		
			
			<!-- End Notifications -->
				
				<ul class="shortcut-buttons-set">
                    
				    <li><asp:Button ID="btnAdd" runat="server" Text="Thêm mới" OnClick="btnAdd_Click" TabIndex="3" UseSubmitBehavior="False" />
				        <asp:DropDownList ID="cboKichHoat" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                            <asp:ListItem Value="1">K&#237;ch hoạt</asp:ListItem>
                            <asp:ListItem Value="0">Chưa k&#237;ch hoạt</asp:ListItem>
                        </asp:DropDownList>
                    </li>
                    <li>Mã:<asp:TextBox ID="txtMa" runat="server"></asp:TextBox></li>
				    <li>Tên:<asp:TextBox ID="txtTen" runat="server"></asp:TextBox></li>
                    <asp:Button ID="btnSearch" runat="server" OnCommand="btnSearch_Command" Text="Tìm kiếm" />
                    <asp:Button ID="txtReset" runat="server" OnCommand="txtReset_Command" Text="Tất cả" /></ul>
		  
		  <div class="clear"></div>
              <!-- End .shortcut-buttons-set -->
              <table class="tbl_list" width="100%">
	            <tr class="tbl_list_head" >
                    <th style="width:70px;font-weight:bold;border-right:1px solid Green;">
                        Mã</th>
                    <th style="font-weight:bold;border-right:1px solid Green;">Tên chuyên môn</th>
                    <th style="font-weight:bold;border-right:1px solid Green;">mã cha</th>
                    <th style="width:50px;font-weight:bold;border-right:1px solid Green;">Kích hoạt</th>
                    <th style="width:100px;text-align:center;font-weight:bold;">Hành động</th>
                </tr>
                <asp:Repeater ID="rpt_user_list" runat="server" OnItemDataBound="rpt_user_list_ItemDataBound">
                <ItemTemplate>
	                    <tr class="tbl_list_odl" style="background:#abd9f8;">
		                    <td><%# DataBinder.Eval(Container.DataItem, "ma_chuyen_mon")%></td>
		                    <td><%# DataBinder.Eval(Container.DataItem, "ten_chuyen_mon")%></td>
		                    <td><%# DataBinder.Eval(Container.DataItem, "ma_chuyen_mon_cha")%></td>
		                    <td><%# DataBinder.Eval(Container.DataItem, "kich_hoat")%></td>
		                    <td align="right" style="text-align:right;">
		                        <a href="DanhMuc_ChuyenMon_frm.aspx?act=add&id=<%# DataBinder.Eval(Container.DataItem, "ma_chuyen_mon") %>" 
		                            title="Thêm mới một mục thuộc mục này"><img src="../images/vl_adm_ico_add.png" /></a>
		                        <a href="DanhMuc_ChuyenMon_detail.aspx?id=<%# DataBinder.Eval(Container.DataItem, "ma_chuyen_mon") %>" 
		                            title="Xem chi tiết mục này"><img src="../images/vl_adm_ico_chon_True.png" /></a>
	                            <a href="DanhMuc_ChuyenMon_frm.aspx?act=edit&id=<%# DataBinder.Eval(Container.DataItem, "ma_chuyen_mon") %>" title="Sửa mục này"><img src="../images/vl_adm_ico_edit.png" /></a>
                                 <a href="javascript:void(0);" onclick="if(confirm('Bạn có chắc xóa thông tin có mã là: <%# DataBinder.Eval(Container.DataItem, "ma_chuyen_mon") %> ? Lưu ý xóa thông tin này thì các thông tin phụ thuộc sẽ bị xóa theo!')) window.location ='DanhMuc_ChuyenMon_list.aspx?act=del&id=<%# DataBinder.Eval(Container.DataItem, "ma_chuyen_mon") %>'  " title="Xóa mục này"><img src="../images/vl_adm_ico_del.png" /></a> 
                
	                        </td>
	                    </tr>     
	                    <tr class="tbl_list_eve" style="background:#daeaf4;">
	                        <asp:Repeater ID="rpt_chuyenmon_sub" runat="server">
                                <ItemTemplate>
                                    <tr style="border:1px dotted #e7bf94;">
                                        <td style="margin-left:3px;"> * <%#DataBinder.Eval(Container.DataItem, "ma_chuyen_mon")%></td>
                                        <td style="margin-left:3px;border:1px dotted #e7bf94;">
                                        <i><%#DataBinder.Eval(Container.DataItem, "ten_chuyen_mon")%></i></td>
                                        <td style="margin-left:3px;border:1px dotted #e7bf94;"><%#DataBinder.Eval(Container.DataItem, "ma_chuyen_mon_cha")%></td>
                                        <td style="margin-left:3px;border:1px dotted #e7bf94;"><%#DataBinder.Eval(Container.DataItem, "kich_hoat")%></td>
                                        <td align="right"  style="text-align:right;">
                                            <a href="DanhMuc_ChuyenMon_detail.aspx?id=<%# DataBinder.Eval(Container.DataItem, "ma_chuyen_mon") %>" title="Xem chi tiết mục này"><img src="../images/vl_adm_ico_chon_True.png" /></a>
            	                
	                            <a href="DanhMuc_ChuyenMon_frm.aspx?act=edit&id=<%# DataBinder.Eval(Container.DataItem, "ma_chuyen_mon") %>" title="Sửa mục này"><img src="../images/vl_adm_ico_edit.png" /></a>
                  
                                 <a href="javascript:void(0);" onclick="if(confirm('Bạn có chắc xóa thông tin có mã là: <%# DataBinder.Eval(Container.DataItem, "ma_chuyen_mon") %> ?')) window.location ='DanhMuc_ChuyenMon_list.aspx?act=del&id=<%# DataBinder.Eval(Container.DataItem, "ma_chuyen_mon") %>'  " title="Xóa mục này"><img src="../images/vl_adm_ico_del.png" /></a> 
                                        </td> 
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
	                    </tr>   
	                </ItemTemplate>
                </asp:Repeater>
</table>
                        <br />



	
				  </div> <!-- End #tab1 -->
				  <div class="pagination">
                      <cc1:PagerV2_8 ID="pagination1" runat="server" GenerateFirstLastSection="True" GenerateGoToSection="True"
                          OnCommand="pagination1_Command" PageSize="5" />
                      &nbsp;</div>
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
 </div>
</asp:Content>